﻿/*
* MultiDatesPicker v1.5.2
* http://multidatespickr.sourceforge.net/
* 
* Copyright 2011, Luca Lauretta
* Dual licensed under the MIT or GPL version 2 licenses.
*/
var latestMDPver = $.ui.multiDatesPicker.version;
var lastMDPupdate = '2011-09-04';
$(function () {
    // Version //
    //$('title').text($('title').text() + ' v' + latestMDPver);
    $('.mdp-version').text('v' + latestMDPver)
    $('#mdp-title').attr('title', 'last update on: ' + lastMDPupdate);

    // Documentation //
    $('i:contains(type)').attr('title', '[Optional] accepted values are: "allowed" [default]; "disabled".');
    $('i:contains(format)').attr('title', '[Optional] accepted values are: "string" [default]; "object".');
    $('#how-to h4').each(function () {
        var a = $(this).closest('li').attr('id');
        $(this).wrap('<' + 'a href="#' + a + '"></' + 'a>');
    });

    // Run Demos
    $('.demo .code').each(function () {
        eval($(this).html());
    });
});